Platform Explorer / Nuxeo Platform 2023.23

Operation Picture.Create (Create Picture)

Description

Create a Picture document in the input folder. You can initialize the document properties using the 'properties' parameter. The properties are specified as key=value pairs separated by a new line. The key originalPicture is used to reference the JSON representation of the Blob for the original picture. The pictureTemplates parameter can be used to define the size of the different views to be generated, each line must be a JSONObject { title="title", description="description", maxsize=maxsize}. Returns the created document.
Operation id Picture.Create
Category Services
Label Create Picture
Requires
Since

Parameters

Name Description Type Required Default value
name string no  
pictureTemplates properties no  
properties properties no  

Signature

Inputs document, documents
Outputs document, documents

Implementation Information

Implementation Class Class: org.nuxeo.ecm.platform.picture.operation.CreatePicture
Contributing Component org.nuxeo.ecm.platform.picture.operation

JSON Definition

{
  "id" : "Picture.Create",
  "label" : "Create Picture",
  "category" : "Services",
  "requires" : null,
  "description" : "Create a Picture document in the input folder. You can initialize the document properties using the 'properties' parameter. The properties are specified as <i>key=value</i> pairs separated by a new line. The key <i>originalPicture</i> is used to reference the JSON representation of the Blob for the original picture. The <i>pictureTemplates</i> parameter can be used to define the size of the different views to be generated, each line must be a JSONObject { title=\"title\", description=\"description\", maxsize=maxsize}. Returns the created document.",
  "url" : "Picture.Create",
  "signature" : [ "document", "document", "documents", "documents" ],
  "params" : [ {
    "name" : "name",
    "description" : null,
    "type" : "string",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "pictureTemplates",
    "description" : null,
    "type" : "properties",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  }, {
    "name" : "properties",
    "description" : null,
    "type" : "properties",
    "required" : false,
    "widget" : null,
    "order" : 0,
    "values" : [ ]
  } ]
}